package com.eliza.client.contants


const val Host = "192.168.20.5"

/*
*
*
* docker run -d \
  -p 5433:5432 \
  -e POSTGRES_PASSWORD=root \
  -e POSTGRES_USER=root \
  postgres
*
* */

object MongoConfig {
    val dbname = "test"
    val user = "root"
    val password = "root"
    val host = Host
    val port = 27017
    val maxPoolSize = 20
    val credentials = user?.let { userVal -> password?.let { passwordVal -> "$userVal:$passwordVal@" } }.orEmpty()
    private val uri = "mongodb://$credentials$host:$port/?maxPoolSize=$maxPoolSize&w=majority"
    fun getDsn(): String {
        return uri
    }
}

object PgConfig {
    val dbname = "test"
    val user = "root"
    val password = "root"
    val host = Host
    val port = 5432
    val driver = "org.postgresql.Driver"
    private val uri = "jdbc:postgresql://$host:$port"
    fun getDsn(): String {
        return uri
    }
}

object RabbitMQConfig {
    private val uri = "amqp://guest:guest@localhost:5672"
    fun getDsn(): String {
        return uri
    }
}

object GoogleClientConfig {
   val GOOGLE_CLIENT_ID=""
   val GOOGLE_CLIENT_SECRET=""
    private val uri = "amqp://guest:guest@localhost:5672"
    fun getDsn(): String {
        return uri
    }
}